layout.tsx 578 B

12345678910111213141516171819
  1. import { LayoutParams } from "@/shared/types/next";
  2. type LocaleParams = Record<string, string> & {
  3. locale: string;
  4. };
  5. export default function RouteLayout({ children, params: _ }: LayoutParams<LocaleParams>) {
  6. return (
  7. <div className="bg-muted/30 text-foreground flex min-h-screen flex-col">
  8. {/* Fixe l'espace sous le header flottant */}
  9. <div className="h-16" />
  10. {/* Contenu principal centré avec marge */}
  11. <main className="flex-1 px-4 py-12">
  12. <div className="mx-auto w-full max-w-4xl">{children}</div>
  13. </main>
  14. </div>
  15. );
  16. }